|
RAIS
3.2
|
00001 00028 using System; 00029 using System.Collections.Generic; 00030 using System.Data; 00031 using System.Text; 00032 00033 namespace RAIS.Common.UserManagement 00034 { 00035 #region UserData class 00036 00039 public class UserData 00040 { 00041 #region Enumerators 00042 public enum DataRoleIndication 00043 { 00044 DataRole, 00045 Facility 00046 } 00047 public enum UserType 00048 { 00049 Admin, 00050 Regulator, 00051 Licensee, 00052 PublicBody, 00053 Guest 00054 } 00055 #endregion 00056 #region Fields 00057 int id; 00058 string login = ""; 00059 string password = null; 00060 UserType userType=UserType.Guest; 00061 string email = ""; 00062 string completeName = ""; 00063 DataRoleIndication dataRoleType = DataRoleIndication.DataRole; 00064 string functionalRole = ""; 00065 string dataRole = ""; 00066 string facility = ""; 00067 string selectedLanguage = Common.Constants.DEFAULT_LANGUAGE; 00068 #endregion 00069 #region Properties 00070 00073 public int ID 00074 { 00075 get { return this.id; } 00076 set { this.id = value; } 00077 } 00081 public string Login 00082 { 00083 get { return this.login; } 00084 set { this.login = value; } 00085 } 00089 public string Password 00090 { 00091 get { return this.password; } 00092 set { this.password = value; } 00093 } 00097 public int Type 00098 { 00099 get { return (int)this.userType; } 00100 set { this.userType = (UserType)value; } 00101 } 00106 00114 00122 00130 00137 00144 00152 00160 00168 00176 00199 00204